package com.cookor.poi.modules.cms.dao;

import com.cookor.poi.common.persistence.annotation.MyBatisDao;
import com.cookor.poi.modules.cms.entity.CmsSurveryResult;
import com.cookor.poi.modules.cms.entity.CmsSurveryResultExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisDao
public interface CmsSurveryResultDao {
    long countByExample(CmsSurveryResultExample example);

    int deleteByExample(CmsSurveryResultExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CmsSurveryResult record);

    int insertSelective(CmsSurveryResult record);

    List<CmsSurveryResult> selectByExample(CmsSurveryResultExample example);

    CmsSurveryResult selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CmsSurveryResult record, @Param("example") CmsSurveryResultExample example);

    int updateByExample(@Param("record") CmsSurveryResult record, @Param("example") CmsSurveryResultExample example);

    int updateByPrimaryKeySelective(CmsSurveryResult record);

    int updateByPrimaryKey(CmsSurveryResult record);

    List<CmsSurveryResult> queryCount(String id);
}